.class public Lcom/instagram/android/directshare/g/ab;
.super Ljava/lang/Object;
.source "DirectSharePermalinkMoreOptionsDialog.java"


# instance fields
.field private final a:Landroid/content/Context;

.field private final b:Landroid/support/v4/app/aj;

.field private final c:Lcom/instagram/android/feed/c/a;

.field private final d:Lcom/instagram/j/l;

.field private final e:Lcom/instagram/android/directshare/g/ag;

.field private f:Landroid/app/Dialog;

.field private g:[Ljava/lang/CharSequence;


# direct methods
.method public constructor <init>(Landroid/support/v4/app/Fragment;Lcom/instagram/j/l;Lcom/instagram/android/directshare/g/ag;)V
    .locals 3
    .parameter
    .parameter
    .parameter

    .prologue
    .line 38
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 39
    invoke-virtual {p1}, Landroid/support/v4/app/Fragment;->getContext()Landroid/content/Context;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/directshare/g/ab;->a:Landroid/content/Context;

    .line 40
    invoke-virtual {p1}, Landroid/support/v4/app/Fragment;->u()Landroid/support/v4/app/aj;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/directshare/g/ab;->b:Landroid/support/v4/app/aj;

    .line 41
    new-instance v0, Lcom/instagram/android/feed/c/a;

    iget-object v1, p0, Lcom/instagram/android/directshare/g/ab;->a:Landroid/content/Context;

    iget-object v2, p0, Lcom/instagram/android/directshare/g/ab;->b:Landroid/support/v4/app/aj;

    invoke-direct {v0, v1, v2}, Lcom/instagram/android/feed/c/a;-><init>(Landroid/content/Context;Landroid/support/v4/app/aj;)V

    iput-object v0, p0, Lcom/instagram/android/directshare/g/ab;->c:Lcom/instagram/android/feed/c/a;

    .line 42
    iput-object p2, p0, Lcom/instagram/android/directshare/g/ab;->d:Lcom/instagram/j/l;

    .line 43
    iput-object p3, p0, Lcom/instagram/android/directshare/g/ab;->e:Lcom/instagram/android/directshare/g/ag;

    .line 44
    return-void
.end method

.method static synthetic a(Lcom/instagram/android/directshare/g/ab;Landroid/app/Dialog;)Landroid/app/Dialog;
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 27
    iput-object p1, p0, Lcom/instagram/android/directshare/g/ab;->f:Landroid/app/Dialog;

    return-object p1
.end method

.method static synthetic a(Lcom/instagram/android/directshare/g/ab;)[Ljava/lang/CharSequence;
    .locals 1
    .parameter

    .prologue
    .line 27
    invoke-direct {p0}, Lcom/instagram/android/directshare/g/ab;->b()[Ljava/lang/CharSequence;

    move-result-object v0

    return-object v0
.end method

.method static synthetic b(Lcom/instagram/android/directshare/g/ab;)Landroid/content/Context;
    .locals 1
    .parameter

    .prologue
    .line 27
    iget-object v0, p0, Lcom/instagram/android/directshare/g/ab;->a:Landroid/content/Context;

    return-object v0
.end method

.method private b()[Ljava/lang/CharSequence;
    .locals 5

    .prologue
    .line 47
    iget-object v0, p0, Lcom/instagram/android/directshare/g/ab;->g:[Ljava/lang/CharSequence;

    if-nez v0, :cond_1

    .line 48
    iget-object v0, p0, Lcom/instagram/android/directshare/g/ab;->d:Lcom/instagram/j/l;

    invoke-virtual {v0}, Lcom/instagram/j/l;->b()Lcom/instagram/android/model/b/e;

    move-result-object v0

    .line 49
    invoke-static {}, Lcom/instagram/service/a;->a()Lcom/instagram/service/a;

    move-result-object v1

    invoke-virtual {v1}, Lcom/instagram/service/a;->b()Lcom/instagram/android/model/b/e;

    move-result-object v1

    .line 50
    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    .line 52
    invoke-virtual {v1, v0}, Lcom/instagram/android/model/b/e;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_2

    .line 53
    iget-object v0, p0, Lcom/instagram/android/directshare/g/ab;->a:Landroid/content/Context;

    sget v1, Lcom/facebook/ba;->directshare_delete:I

    invoke-virtual {v0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-interface {v2, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 55
    iget-object v0, p0, Lcom/instagram/android/directshare/g/ab;->d:Lcom/instagram/j/l;

    invoke-virtual {v0}, Lcom/instagram/j/l;->D()Lcom/instagram/j/f;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/j/f;->a()I

    move-result v0

    if-lez v0, :cond_0

    .line 56
    iget-object v0, p0, Lcom/instagram/android/directshare/g/ab;->a:Landroid/content/Context;

    sget v1, Lcom/facebook/ba;->directshare_edit_comments:I

    invoke-virtual {v0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-interface {v2, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 74
    :cond_0
    :goto_0
    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v0

    new-array v0, v0, [Ljava/lang/CharSequence;

    iput-object v0, p0, Lcom/instagram/android/directshare/g/ab;->g:[Ljava/lang/CharSequence;

    .line 75
    iget-object v0, p0, Lcom/instagram/android/directshare/g/ab;->g:[Ljava/lang/CharSequence;

    invoke-interface {v2, v0}, Ljava/util/List;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;

    .line 77
    :cond_1
    iget-object v0, p0, Lcom/instagram/android/directshare/g/ab;->g:[Ljava/lang/CharSequence;

    return-object v0

    .line 59
    :cond_2
    iget-object v3, p0, Lcom/instagram/android/directshare/g/ab;->a:Landroid/content/Context;

    sget v4, Lcom/facebook/ba;->directshare_hide:I

    invoke-virtual {v3, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-interface {v2, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 60
    iget-object v3, p0, Lcom/instagram/android/directshare/g/ab;->a:Landroid/content/Context;

    invoke-virtual {v3}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    invoke-static {v0, v3}, Lcom/instagram/android/feed/c/a;->a(Lcom/instagram/android/model/b/e;Landroid/content/res/Resources;)Ljava/lang/String;

    move-result-object v0

    invoke-interface {v2, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 63
    iget-object v0, p0, Lcom/instagram/android/directshare/g/ab;->a:Landroid/content/Context;

    sget v3, Lcom/facebook/ba;->directshare_ignore_all:I

    invoke-virtual {v0, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-interface {v2, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 64
    iget-object v0, p0, Lcom/instagram/android/directshare/g/ab;->a:Landroid/content/Context;

    sget v3, Lcom/facebook/ba;->report_inappropriate:I

    invoke-virtual {v0, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-interface {v2, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 66
    iget-object v0, p0, Lcom/instagram/android/directshare/g/ab;->d:Lcom/instagram/j/l;

    invoke-virtual {v0}, Lcom/instagram/j/l;->D()Lcom/instagram/j/f;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/j/f;->c()Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v3

    :cond_3
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/j/b;

    .line 67
    invoke-virtual {v0}, Lcom/instagram/j/b;->f()Lcom/instagram/android/model/b/e;

    move-result-object v0

    invoke-virtual {v1, v0}, Lcom/instagram/android/model/b/e;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_3

    .line 68
    iget-object v0, p0, Lcom/instagram/android/directshare/g/ab;->a:Landroid/content/Context;

    sget v1, Lcom/facebook/ba;->directshare_edit_comments:I

    invoke-virtual {v0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-interface {v2, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0
.end method

.method private c()V
    .locals 3

    .prologue
    .line 121
    new-instance v0, Lcom/instagram/android/directshare/g/ad;

    invoke-direct {v0, p0}, Lcom/instagram/android/directshare/g/ad;-><init>(Lcom/instagram/android/directshare/g/ab;)V

    .line 130
    new-instance v1, Lcom/instagram/ui/a/a;

    iget-object v2, p0, Lcom/instagram/android/directshare/g/ab;->a:Landroid/content/Context;

    invoke-direct {v1, v2}, Lcom/instagram/ui/a/a;-><init>(Landroid/content/Context;)V

    sget v2, Lcom/facebook/ba;->directshare_delete_dialog_title:I

    invoke-virtual {v1, v2}, Lcom/instagram/ui/a/a;->b(I)Lcom/instagram/ui/a/a;

    move-result-object v1

    sget v2, Lcom/facebook/ba;->directshare_delete_dialog_message:I

    invoke-virtual {v1, v2}, Lcom/instagram/ui/a/a;->a(I)Lcom/instagram/ui/a/a;

    move-result-object v1

    sget v2, Lcom/facebook/ba;->directshare_delete:I

    invoke-virtual {v1, v2, v0}, Lcom/instagram/ui/a/a;->a(ILandroid/content/DialogInterface$OnClickListener;)Lcom/instagram/ui/a/a;

    move-result-object v0

    sget v1, Lcom/facebook/ba;->cancel:I

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Lcom/instagram/ui/a/a;->b(ILandroid/content/DialogInterface$OnClickListener;)Lcom/instagram/ui/a/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/ui/a/a;->b()Landroid/app/Dialog;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/Dialog;->show()V

    .line 137
    return-void
.end method

.method static synthetic c(Lcom/instagram/android/directshare/g/ab;)V
    .locals 0
    .parameter

    .prologue
    .line 27
    invoke-direct {p0}, Lcom/instagram/android/directshare/g/ab;->c()V

    return-void
.end method

.method private d()V
    .locals 3

    .prologue
    .line 140
    new-instance v0, Lcom/instagram/android/directshare/g/ae;

    invoke-direct {v0, p0}, Lcom/instagram/android/directshare/g/ae;-><init>(Lcom/instagram/android/directshare/g/ab;)V

    .line 148
    new-instance v1, Lcom/instagram/ui/a/a;

    iget-object v2, p0, Lcom/instagram/android/directshare/g/ab;->a:Landroid/content/Context;

    invoke-direct {v1, v2}, Lcom/instagram/ui/a/a;-><init>(Landroid/content/Context;)V

    sget v2, Lcom/facebook/ba;->directshare_hide_dialog_title:I

    invoke-virtual {v1, v2}, Lcom/instagram/ui/a/a;->b(I)Lcom/instagram/ui/a/a;

    move-result-object v1

    sget v2, Lcom/facebook/ba;->directshare_hide_dialog_message:I

    invoke-virtual {v1, v2}, Lcom/instagram/ui/a/a;->a(I)Lcom/instagram/ui/a/a;

    move-result-object v1

    sget v2, Lcom/facebook/ba;->directshare_hide:I

    invoke-virtual {v1, v2, v0}, Lcom/instagram/ui/a/a;->a(ILandroid/content/DialogInterface$OnClickListener;)Lcom/instagram/ui/a/a;

    move-result-object v0

    sget v1, Lcom/facebook/ba;->cancel:I

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Lcom/instagram/ui/a/a;->b(ILandroid/content/DialogInterface$OnClickListener;)Lcom/instagram/ui/a/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/ui/a/a;->b()Landroid/app/Dialog;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/Dialog;->show()V

    .line 155
    return-void
.end method

.method static synthetic d(Lcom/instagram/android/directshare/g/ab;)V
    .locals 0
    .parameter

    .prologue
    .line 27
    invoke-direct {p0}, Lcom/instagram/android/directshare/g/ab;->d()V

    return-void
.end method

.method static synthetic e(Lcom/instagram/android/directshare/g/ab;)Lcom/instagram/j/l;
    .locals 1
    .parameter

    .prologue
    .line 27
    iget-object v0, p0, Lcom/instagram/android/directshare/g/ab;->d:Lcom/instagram/j/l;

    return-object v0
.end method

.method private e()V
    .locals 7

    .prologue
    const/4 v6, 0x0

    const/4 v5, 0x1

    .line 158
    new-instance v0, Lcom/instagram/ui/a/a;

    iget-object v1, p0, Lcom/instagram/android/directshare/g/ab;->a:Landroid/content/Context;

    invoke-direct {v0, v1}, Lcom/instagram/ui/a/a;-><init>(Landroid/content/Context;)V

    iget-object v1, p0, Lcom/instagram/android/directshare/g/ab;->a:Landroid/content/Context;

    sget v2, Lcom/facebook/ba;->directshare_requested_direct_shares_confirm_ignore_title:I

    new-array v3, v5, [Ljava/lang/Object;

    iget-object v4, p0, Lcom/instagram/android/directshare/g/ab;->d:Lcom/instagram/j/l;

    invoke-virtual {v4}, Lcom/instagram/j/l;->b()Lcom/instagram/android/model/b/e;

    move-result-object v4

    invoke-virtual {v4}, Lcom/instagram/android/model/b/e;->f()Ljava/lang/String;

    move-result-object v4

    aput-object v4, v3, v6

    invoke-virtual {v1, v2, v3}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/instagram/ui/a/a;->a(Ljava/lang/String;)Lcom/instagram/ui/a/a;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/directshare/g/ab;->a:Landroid/content/Context;

    sget v2, Lcom/facebook/ba;->directshare_requested_direct_shares_confirm_ignore_msg:I

    new-array v3, v5, [Ljava/lang/Object;

    iget-object v4, p0, Lcom/instagram/android/directshare/g/ab;->d:Lcom/instagram/j/l;

    invoke-virtual {v4}, Lcom/instagram/j/l;->b()Lcom/instagram/android/model/b/e;

    move-result-object v4

    invoke-virtual {v4}, Lcom/instagram/android/model/b/e;->f()Ljava/lang/String;

    move-result-object v4

    aput-object v4, v3, v6

    invoke-virtual {v1, v2, v3}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/instagram/ui/a/a;->a(Ljava/lang/CharSequence;)Lcom/instagram/ui/a/a;

    move-result-object v0

    sget v1, Lcom/facebook/ba;->directshare_requested_direct_shares_confirm_ignore:I

    new-instance v2, Lcom/instagram/android/directshare/g/af;

    invoke-direct {v2, p0}, Lcom/instagram/android/directshare/g/af;-><init>(Lcom/instagram/android/directshare/g/ab;)V

    invoke-virtual {v0, v1, v2}, Lcom/instagram/ui/a/a;->a(ILandroid/content/DialogInterface$OnClickListener;)Lcom/instagram/ui/a/a;

    move-result-object v0

    invoke-virtual {v0, v5}, Lcom/instagram/ui/a/a;->a(Z)Lcom/instagram/ui/a/a;

    move-result-object v0

    sget v1, Lcom/facebook/ba;->cancel:I

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Lcom/instagram/ui/a/a;->b(ILandroid/content/DialogInterface$OnClickListener;)Lcom/instagram/ui/a/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/ui/a/a;->b()Landroid/app/Dialog;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/Dialog;->show()V

    .line 185
    return-void
.end method

.method static synthetic f(Lcom/instagram/android/directshare/g/ab;)Lcom/instagram/android/feed/c/a;
    .locals 1
    .parameter

    .prologue
    .line 27
    iget-object v0, p0, Lcom/instagram/android/directshare/g/ab;->c:Lcom/instagram/android/feed/c/a;

    return-object v0
.end method

.method static synthetic g(Lcom/instagram/android/directshare/g/ab;)V
    .locals 0
    .parameter

    .prologue
    .line 27
    invoke-direct {p0}, Lcom/instagram/android/directshare/g/ab;->e()V

    return-void
.end method

.method static synthetic h(Lcom/instagram/android/directshare/g/ab;)Lcom/instagram/android/directshare/g/ag;
    .locals 1
    .parameter

    .prologue
    .line 27
    iget-object v0, p0, Lcom/instagram/android/directshare/g/ab;->e:Lcom/instagram/android/directshare/g/ag;

    return-object v0
.end method

.method static synthetic i(Lcom/instagram/android/directshare/g/ab;)Landroid/support/v4/app/aj;
    .locals 1
    .parameter

    .prologue
    .line 27
    iget-object v0, p0, Lcom/instagram/android/directshare/g/ab;->b:Landroid/support/v4/app/aj;

    return-object v0
.end method


# virtual methods
.method public a()V
    .locals 5

    .prologue
    const/4 v4, 0x0

    const/4 v3, 0x1

    .line 81
    new-instance v0, Lcom/instagram/ui/a/a;

    iget-object v1, p0, Lcom/instagram/android/directshare/g/ab;->a:Landroid/content/Context;

    invoke-direct {v0, v1}, Lcom/instagram/ui/a/a;-><init>(Landroid/content/Context;)V

    invoke-direct {p0}, Lcom/instagram/android/directshare/g/ab;->b()[Ljava/lang/CharSequence;

    move-result-object v1

    new-instance v2, Lcom/instagram/android/directshare/g/ah;

    invoke-direct {v2, p0, v4}, Lcom/instagram/android/directshare/g/ah;-><init>(Lcom/instagram/android/directshare/g/ab;Lcom/instagram/android/directshare/g/ac;)V

    invoke-virtual {v0, v1, v2}, Lcom/instagram/ui/a/a;->a([Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Lcom/instagram/ui/a/a;

    move-result-object v0

    invoke-virtual {v0, v3}, Lcom/instagram/ui/a/a;->a(Z)Lcom/instagram/ui/a/a;

    move-result-object v0

    invoke-virtual {v0, v3}, Lcom/instagram/ui/a/a;->b(Z)Lcom/instagram/ui/a/a;

    move-result-object v0

    sget v1, Lcom/facebook/ba;->cancel:I

    invoke-virtual {v0, v1, v4}, Lcom/instagram/ui/a/a;->a(ILandroid/content/DialogInterface$OnClickListener;)Lcom/instagram/ui/a/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/ui/a/a;->b()Landroid/app/Dialog;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/directshare/g/ab;->f:Landroid/app/Dialog;

    .line 88
    iget-object v0, p0, Lcom/instagram/android/directshare/g/ab;->f:Landroid/app/Dialog;

    new-instance v1, Lcom/instagram/android/directshare/g/ac;

    invoke-direct {v1, p0}, Lcom/instagram/android/directshare/g/ac;-><init>(Lcom/instagram/android/directshare/g/ab;)V

    invoke-virtual {v0, v1}, Landroid/app/Dialog;->setOnDismissListener(Landroid/content/DialogInterface$OnDismissListener;)V

    .line 95
    iget-object v0, p0, Lcom/instagram/android/directshare/g/ab;->f:Landroid/app/Dialog;

    invoke-virtual {v0}, Landroid/app/Dialog;->show()V

    .line 96
    return-void
.end method
